<template>
  <svg :style="{ width, height }">
    <use :xlink:href="symbolId" />
  </svg>
</template>
<script setup lang="ts">
import { computed } from "vue";
const props = defineProps({
  width: {
    type: String,
    default: "32px",
  },
  height: {
    type: String,
    default: "32px",
  },
  name: {
    type: String,
    required: true,
  },
});
const symbolId = computed(() => `#icon-${props.name}`);
</script>
<style lang="scss" scoped></style>
